package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_l_ck_ingots", desc = "元宝变更", autoSave = true, uploadCk = true)
public class LogIngots extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "元宝数量")
    private long ingots;
    @FieldTypeAnnotation(desc = "是否获得")
    private boolean isGet;
    @FieldTypeAnnotation(desc = "master途径")
    private int master;
    @FieldTypeAnnotation(desc = "son途径")
    private int son;
    @FieldTypeAnnotation(desc = "变更前元宝")
    private long originalIngots;
    @FieldTypeAnnotation(desc = "变更后元宝")
    private long nowIngots;
    @FieldTypeAnnotation(desc = "描述")
    private String desc;
    @FieldTypeAnnotation(desc = "vip经验")
    private long vipExp;

	public LogIngots() {

	}

	public LogIngots(long userId, long ingots, boolean isGet, int master, int son, long originalIngots, long nowIngots, String desc, long vipExp) {
		this.userId = userId;
		this.ingots = ingots;
		this.isGet = isGet;
		this.master = master;
		this.son = son;
		this.originalIngots = originalIngots;
		this.nowIngots = nowIngots;
		this.desc = desc;
		this.vipExp = vipExp;
        this.time = System.currentTimeMillis();
	}

	public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getIngots() {
        return ingots;
    }

    public void setIngots(long ingots) {
        this.ingots = ingots;
    }

    public boolean isGet() {
        return this.isGet;
    }

    public void setGet(boolean isGet) {
        this.isGet = isGet;
    }

    public int getSon() {
        return this.son;
    }

    public void setSon(int son) {
        this.son = son;
    }

    public long getOriginalIngots() {
        return originalIngots;
    }

    public void setOriginalIngots(long originalIngots) {
        this.originalIngots = originalIngots;
    }

    public long getNowIngots() {
        return nowIngots;
    }

    public void setNowIngots(long nowIngots) {
        this.nowIngots = nowIngots;
    }

    public int getMaster() {
        return master;
    }

    public void setMaster(int master) {
        this.master = master;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public long getVipExp() {
        return vipExp;
    }

    public void setVipExp(long vipExp) {
        this.vipExp = vipExp;
    }
}
